﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace ProjectM2Work
{
    public class LoadContent
    {
        public List<Texture2D> _listMainButton;
        public List<Texture2D> _listTrucXanh;
        public SpriteFont _miniMenuFont;

        public LoadContent(ContentManager contentManager)
        {
            // List main buuton: 3 buuton: about, exit, home
            _listMainButton = new List<Texture2D>();
            _listMainButton.Add(contentManager.Load<Texture2D>("XNA\\Button\\btn_home"));
            _listMainButton.Add(contentManager.Load<Texture2D>("XNA\\Button\\btn_thongtin"));
            _listMainButton.Add(contentManager.Load<Texture2D>("XNA\\Button\\btn_thoat"));
            _listMainButton.Add(contentManager.Load<Texture2D>("XNA\\Button\\btn_trucxinh"));
            _listMainButton.Add(contentManager.Load<Texture2D>("XNA\\Button\\btn_tracnghiem"));

            // List hinh de choi truc xanh va la bai up
            _listTrucXanh = new List<Texture2D>();
            _listTrucXanh.Add(contentManager.Load<Texture2D>("XNA\\TrucXanh\\card_close"));
            for (int i = 0; i < 25; i++)
            {
                _listTrucXanh.Add(contentManager.Load<Texture2D>("XNA\\TrucXanh\\90753910_" + (i + 1).ToString("00")));
            }

            // Load font
            _miniMenuFont = contentManager.Load<SpriteFont>("XNA\\SpriteFont\\MenuMiniFont");
        }
    }
}

